package com.share.tool.devops.model.es;

import lombok.Data;

@Data
public class EsLogReq {
    private String index;
    private String applicationName;
    private String classpath;
    private String ip;
    private String level;
    private String lineNumber;
    private String logContent;
    private String thread;
    private String spanId;
    private String traceId;
    private String requestId;
    private String sessionId;
    private String startTime;
    private String endTime;

    private Integer from = 0;//分页滚动查询时才被用到
    private Integer Size = 1000;//分页滚动查询时才被用到

    public String getIndex() {
        if (this.index == null) {
            this.index = EsConfig.DEFAULT_INDEX;
        }
        return index;
    }
}
